import http from "@/service/index"

// 登录
export function login(data: any){
	return http.post({
	    url: '/oauth/auth/login',
	    data: data
	})
}

// 核销（核销码核销）
export function consume(data: any){
	return http.post({
	    url: '/ticketCode/ticketCodeSubcode/writeOff',
	    data: data,
		fullResult: true
	})
}

// 根据核销码获取详情
export function getDetailByConsumeCode(data: any){
	return http.post({
	    url: '/ticketCode/ticketCodeSubcode/queryListInput',
	    data: data,
		fullResult: true
	})
}

// 查询核销列表
export function getConsumeList(data: any){
	return http.post({
	    url: '/ticketCode/ticketCodeMain/queryPage',
	    data: data,
		// fullResult: true
	})
}

// 查询登录账号信息
export function getUserInfo(data: any){
	return http.post({
	    url: '/provider/mcqWriteOffUserInfo/loginInfo',
	    data: data,
		// fullResult: true
	})
}
